<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>数据上报任务详情</title>
<#include "/common/resource.ftl">
<style>
.info-table{width:100%;}
.info-table .info-lable{text-align: right;white-space: nowrap;font-weight: normal;width: 90px;padding:10px;padding-right: 10px;background: #fafafa;border-right: 1px solid #eee;border-bottom: 1px solid #eee;}
.info-table .info-value{width: auto;padding: 10px;border-bottom: 1px solid #eee;}
</style>
<script type="text/javascript" src="${params.contextPath}/js/moment.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	<#if params.id??>
    $.ajax({
        url:'${params.contextPath}/web/taskActor/query.json',
        data:{id:'${params.id}'},
        type:'GET',
        success:function(resp){
            var inputList = resp.data.inputList;
            for(var i=0;i<inputList.length;i++){
                var input = inputList[i];
                var formItem = $("#infoTemplate").clone();
                formItem.attr("id","").show();
                var formItemContent = formItem.html();
                formItemContent = formItemContent.format(input);
                formItem.empty().html(formItemContent);
                $("#infoTemplate").before(formItem);
            }
            var report = resp.data.report;
            if(report&&report.data&&report.data.json){
                for(var key in report.data.json){
                    $("#"+key).html(report.data.json[key]);
                }
            }
        },
        dataType:'json'
    });
	</#if>
});
</script>
</head>
<body>
	<table class="info-table">
		<tr id="infoTemplate" style="display:none;">
			<td class="info-lable">{chName}</td>
			<td class="info-value" id="{enName}"></td>
		</tr>
	</table>


</body>
</html>
